package com.jnevision.salaryrecord.model;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 薪资财务记录
 * </p>
 *
 * @author gavin
 * @since 2019-07-24
 */
@TableName("b_salary_record")
public class SalaryRecord extends Model<SalaryRecord> {
    private static final long serialVersionUID = 4899028942089855197L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @TableField("user_id")
    private String userId;

    @TableField("dept_id")
    private Integer deptId;

    /**
     * 年月，yyyy-MM
     */
    @TableField("date")
    private String date;

    @TableField("is_submit")
    private Boolean submit;

    @TableField("is_grant")
    private Boolean grantable;

    @TableField("submit_time")
    private LocalDateTime submitTime;

    @TableField("grant_time")
    private LocalDateTime grantTime;

    @TableField("reason")
    private String reason;

    @TableField("gangwei")
    private String gangwei;

    @TableField("baozhang")
    private String baozhang;

    @TableField("yiliao")
    private String yiliao;

    @TableField("shiye")
    private String shiye;
    @TableField("yanglao")
    private String yanglao;

    @TableField("shengyu")
    private String shengyu;

    @TableField("gongling")
    private String gongling;

    @TableField("wxjishu")
    private String wxjishu;

    @TableField("qingjia")
    private String qingjia;

    @TableField("chidao")
    private String chidao;

    @TableField("zaotui")
    private String zaotui;

    @TableField("extra")
    private String extra;

    @TableField("jiaban")
    private String jiaban;

    public String getQingjia() {
        return this.qingjia;
    }

    public void setQingjia(String qingjia) {
        this.qingjia = qingjia;
    }

    public String getChidao() {
        return this.chidao;
    }

    public void setChidao(String chidao) {
        this.chidao = chidao;
    }

    public String getZaotui() {
        return this.zaotui;
    }

    public void setZaotui(String zaotui) {
        this.zaotui = zaotui;
    }

    public String getExtra() {
        return this.extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getJiaban() {
        return this.jiaban;
    }

    public void setJiaban(String jiaban) {
        this.jiaban = jiaban;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Boolean getSubmit() {
        return submit;
    }

    public void setSubmit(Boolean submit) {
        this.submit = submit;
    }

    public Boolean getGrantable() {
        return grantable;
    }

    public void setGrantable(Boolean grantable) {
        this.grantable = grantable;
    }

    public LocalDateTime getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(LocalDateTime submitTime) {
        this.submitTime = submitTime;
    }

    public LocalDateTime getGrantTime() {
        return grantTime;
    }

    public void setGrantTime(LocalDateTime grantTime) {
        this.grantTime = grantTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getGangwei() {
        return gangwei;
    }

    public void setGangwei(String gangwei) {
        this.gangwei = gangwei;
    }

    public String getBaozhang() {
        return baozhang;
    }

    public void setBaozhang(String baozhang) {
        this.baozhang = baozhang;
    }

    public String getYiliao() {
        return yiliao;
    }

    public void setYiliao(String yiliao) {
        this.yiliao = yiliao;
    }

    public String getShiye() {
        return shiye;
    }

    public void setShiye(String shiye) {
        this.shiye = shiye;
    }

    public String getShengyu() {
        return shengyu;
    }

    public void setShengyu(String shengyu) {
        this.shengyu = shengyu;
    }

    public String getGongling() {
        return gongling;
    }

    public void setGongling(String gongling) {
        this.gongling = gongling;
    }

    public String getWxjishu() {
        return wxjishu;
    }

    public void setWxjishu(String wxjishu) {
        this.wxjishu = wxjishu;
    }

    public String getYanglao() {
        return this.yanglao;
    }

    public void setYanglao(String yanglao) {
        this.yanglao = yanglao;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SalaryRecord{" + "id=" + id + ", userId=" + userId + ", deptId=" + deptId + ", date=" + date
            + ", submit=" + submit + ", grant=" + grantable + ", submitTime=" + submitTime + ", grantTime=" + grantTime
            + ", reason=" + reason + ", gangwei=" + gangwei + ", baozhang=" + baozhang + ", yiliao=" + yiliao
            + ", shiye=" + shiye + ", shengyu=" + shengyu + ", gongling=" + gongling + ", wxjishu=" + wxjishu + "}";
    }
}